﻿/** 
Copyright (c) 2010, Sheikh Abdul Wahid Ahmed
Details @ http://extremecodeworld.codeplex.com/license
**/

using System;
using System.Collections.Generic;
using System.Text;
using EXtremecode.Logging;

namespace LoggingTest
{
    class Program
    {
        static void Main(string[] args)
        {
           
            try
            {

                MethodA();
                

            }
            catch (Exception ex)
            {
                Logger.Write(ex);
                
            }
        }

        private static void MethodA()
        {
            Logger.Write("message");
            try
            {


                Logger.Write(
                    new Exception("message"));

                int i = 8;
                int j = 0;
                int k = i / j;
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
                
            }
        }

        private static void MethodB()
        {
            Logger.Write("message");
            try
            {


                Logger.Write(
                    new Exception("message"));

                int i = 8;
                int j = 0;
                int k = i / j;
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
            }
        }

        private static void MethodC()
        {
            Logger.Write("message");
            try
            {


                Logger.Write(
                    new Exception("message"));

                int i = 8;
                int j = 0;
                int k = i / j;
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
                
            }
        }

        private static void MethodD()
        {
            Logger.Write("message");
            try
            {


                Logger.Write(
                    new Exception("message"));

                int i = 8;
                int j = 0;
                int k = i / j;
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
               
            }
        }

        private static void MethodE()
        {
            Logger.Write("message");
            try
            {


                Logger.Write(
                    new Exception("message"));

                int i = 8;
                int j = 0;
                int k = i / j;
            }
            catch (Exception ex)
            {
                Logger.Write(ex);

            }
        }
 
    }
}
